<!DOCTYPE html>
<html lang="en">
<head>
  <meta charset="UTF-8">
  <meta name="viewport" content="initial-scale=1, user-scalable=no, width=device-width">
	<meta http-equiv="X-UA-Compatible" content="ie=edge">
	<link rel="shortcut icon" href="../favicon.ico" type="image/ico"/>
  <meta name="description" content="悠然一指content">
  <meta name="keywords" content="悠然一指kewords">
  <title>拾恋</title>
  <link rel="stylesheet" href="css.css">
  <script type="text/javascript">
    // 获取终端的相关信息
    var Terminal = {
      // 辨别移动终端类型
      platform: function () {
        var u = navigator.userAgent,
          app = navigator.appVersion;
        return {
          // android终端或者uc浏览器
          android: u.indexOf('Android') > -1 || u.indexOf('Linux') > -1,
          // 是否为iPhone或者QQHD浏览器
          iPhone: u.indexOf('iPhone') > -1,
          // 是否iPad
          iPad: u.indexOf('iPad') > -1
        };
      }(),
      // 辨别移动终端的语言：zh-cn、en-us、ko-kr、ja-jp...
      language: (navigator.browserLanguage || navigator.language).toLowerCase()
    }

    // 根据不同的终端，跳转到不同的地址
    var theUrl = 'itms-apps://itunes.apple.com/WebObjects/MZStore.woa/wa/viewSoftware?id=1438503085';
    if (Terminal.platform.android) { // 安卓端
      theUrl = 'https://sj.qq.com/myapp/detail.htm?apkName=com.yryz.lovelorn';
      location.href = theUrl;
    } else {
      if (Terminal.platform.iPhone) { // iPhone端
        theUrl = 'itms-apps://itunes.apple.com/WebObjects/MZStore.woa/wa/viewSoftware?id=1438503085';
			} 
			// else if (Terminal.platform.iPad) { // iPad端
      //   // 还可以通过language，区分开多国语言版
      //   switch (Terminal.language) {
      //     case 'en-us': //iPad英文版APP Store地址
      //       theUrl = 'itms-apps://itunes.apple.com/WebObjects/MZStore.woa/wa/viewSoftware?id=1438503085';
      //       break;
      //     case 'ko-kr': //iPad韩语版APP Store地址
      //       theUrl = 'itms-apps://itunes.apple.com/WebObjects/MZStore.woa/wa/viewSoftware?id=1438503085';
      //       break;
      //     case 'ja-jp': //iPad日文版APP Store地址
      //       theUrl = 'itms-apps://itunes.apple.com/WebObjects/MZStore.woa/wa/viewSoftware?id=1438503085';
      //       break;
      //     default: //iPad默认APP Store地址
      //       theUrl = 'itms-apps://itunes.apple.com/WebObjects/MZStore.woa/wa/viewSoftware?id=1438503085';
      //   }
      // }
      location.href = theUrl;
    }
	</script>
</head>

<body>
  <div>
  </div>
</body>

</html>
